DIRNAME
Section: User Commands (1)
Updated: April 29, 1985
Index
Return to Main Contents
NAME
dirname - display directory portion of a pathname
SYNOPSIS
dirname
string
DESCRIPTION
dirname
delivers all but the last level of the path name in
string.
The following example will set the shell variable
NAME
to
/usr/src/cmd:
-
NAME=`dirname /usr/src/cmd/cat.c`
SEE ALSO
sh(1), basename(1)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 04:52:54 GMT, January 31, 2023